import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

import { AppComponent } from './app.component';

import { BrowserAnimationsModule } from '@angular/platform-browser/animations';


import 'hammerjs'; // for support Angular2 Material Component animation's gesture detect
import { MaterialsModule } from "./widget/materials.module";
import { AppRoutingModule } from "./router/app-routing.module";
import { AppSidenavComponent } from './pages/app-sidenav/app-sidenav.component';
import { HeaderComponent } from './shared/header/header.component';
import { HomeComponent } from './pages/home/home.component';
import { DummyTasksComponent } from './pages/dummy-tasks/dummy-tasks.component';
import { PageHeaderComponent } from './pages/page-header/page-header.component';
import {PageTitleService} from "./pages/page-title.service";
import { PendingTasksComponent } from './pages/pending-tasks/pending-tasks.component';
import { NavigationComponent } from './pages/navigation/navigation.component';
import { PendingTaskComponent } from './pages/pending-task/pending-task.component';
import {BackApiService} from "./pages/back-api.service";
import { ResultDialogComponent } from './shared/result-dialog/result-dialog.component';
import { ProgressingTasksComponent } from './pages/progressing-tasks/progressing-tasks.component';
import { ImagePickerComponent } from './shared/image-picker/image-picker.component';
import { FinishTasksComponent } from './pages/finish-tasks/finish-tasks.component';
import {Angular2ImageGalleryModule} from "angular2-image-gallery";
import { ProgressingTaskComponent } from './pages/progressing-task/progressing-task.component';
import { MailsComponent } from './pages/mails/mails.component';

// for md-slide-toggle ,md-slider  gesture support;

@NgModule({
  declarations: [
    AppComponent,
    AppSidenavComponent,
    HeaderComponent,
    HomeComponent,
    DummyTasksComponent,
    PageHeaderComponent,
    PendingTasksComponent,
    NavigationComponent,
    PendingTaskComponent,
    ResultDialogComponent,
    ProgressingTasksComponent,
    ImagePickerComponent,
    FinishTasksComponent,
    ProgressingTaskComponent,
    MailsComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    BrowserAnimationsModule,
    MaterialsModule,
    AppRoutingModule,
    Angular2ImageGalleryModule
  ],
  providers: [PageTitleService,BackApiService],
  entryComponents: [ResultDialogComponent],
  bootstrap: [AppComponent]
})
export class AppModule { }
